feat(core): add Promptfoo-compatible transform runtime - #1648
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
4ff7473
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1eece0fb.agentv.pages.dev |
| Branch Preview URL: | https://promptfoo-transform-runtime.agentv.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Beads are the source of truth for scope and follow-up. Review summary for:
av-kfik.34,av-kfik.34.1.This PR implements Promptfoo-compatible transform runtime support for authored AgentV eval YAML:
default_test.options.transforminheritance with test-leveltests[].options.transformoverridetests[].options.transformapplied once to provider output before grading/assertionstests[].assert[].transformapplied per assertion only, with isolation from sibling assertionsfile://scripts/xlsx-to-markdown.jspostprocesswith actionabletransformguidancePromptfoo source evidence checked locally at
/home/entity/projects/promptfoo/promptfoo, commit6bfc5a0c7f16f9c4717ac731d276b578e63d0769:src/evaluator.tstransformRunEvalResponsesrc/assertions/index.tsassertion-leveltransformsrc/util/transform.tssrc/types/index.tsexamples/config-transform-fileand related transform examplesOut of scope / coordinated follow-up:
av-kfik.34.3.av-kfik.34.2/av-kfik.34.4.Validation
Focused and adjacent tests:
bun test packages/core/test/evaluation/transform-runtime.test.ts-> 7 passbun test packages/core/test/evaluation/loaders/grader-parser.test.ts-> 112 passbun test packages/core/test/evaluation/orchestrator.test.ts-> 97 passbun test packages/core/test/evaluation/validation/eval-file-schema.test.ts-> 31 passRepo gates:
bun run lint-> passbun run typecheck-> passbun test-> 3161 pass, 4 fail inexamples/features/vitest-workspace-grader/graders/welcome-banner.test.ts; failures areENOENTfor/app/page.tsxbecause those example verifier tests expect a prepared workspace, not this repo root.Live dogfood:
.envplus local OpenAI-compatible proxy athttp://127.0.0.1:10531/v1.local-openaitarget andlocal-openai-graderlive LLM grader.tests[].options.transform: file://scripts/xlsx-to-markdown.jsto convert live provider spreadsheet-style JSON into markdown beforellm-rubricgrading.agentv-private:evidence/av-kfik-34-1-transform-runtimeat commitcef5663.Notes
This PR is intentionally runtime-focused and does not migrate public docs/examples away from preprocessors. Those broader cleanup tasks remain in the Beads called out above.